import requests
# 添加员工
resq = requests.post('http://ihrm-java.itheima.net/api/sys/user',headers = {"Content-Type":"application/json","Authorization":"xx"},
                     json= {
                         "username": "user87655430",
                         "mobile": "13947884780",
                         "workNumber": "9527890aa"
                     })
# 查询员工
resq1 = requests.get('http://ihrm-java.itheima.net/api/sys/user/:target',headers = {"Content-Type":"application/json","Authorization":"xx"})

# 修改员工
resq2 = requests.put('http://ihrm-java.itheima.net/api/sys/user/:target',headers = {"Content-Type":"application/json","Authorization":"xx"},
                    json={"username":"user112233"})
# 删除员工
resq3 =requests.delete('http://ihrm-java.itheima.net/api/sys/user/:target',headers = {"Content-Type":"application/json","Authorization":"xx"})
